<?php
include_once("../modules/checkA.php");
include_once("../../config.php"); 
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'member'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-function.php");
?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include ROOT_PATH_.'/controller/common/module/head.php'; ?>
    <?php include 'modules/head.php'; ?>
</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controller/common/module/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/module/sidebar.php'; ?>
        </div>


<div id="content" class="layui-form">
<h1> 学员列表 </h1>



<div class="detail-box member-edit-box layui-form">

<div class="detail-boxes">
<ul class="detail-boxing"> 



<form id="edit-member-form" method="post" action="detail-add-edit-function.php?nav-itemed=member" enctype="multipart/form-data" class="layui-form">
 
  
 <input type="hidden" name="nid" value="<? echo $detail['nid']?>">
 
 
  <div class="layui-form-item">
    <label class="layui-form-label">姓名</label>
    <div class="layui-input-block">
      <input type="text" name="ai_name" required  lay-verify="required" placeholder="请输入名字" autocomplete="off" class="layui-input" value="<? echo $detail['name']?>">
    </div>
  </div>



    <div class="layui-form-item">
        <label class="layui-form-label">编号<span>*</span></label>
        <div class="layui-input-block">
            <input type="text" name="ai_mid" placeholder="请输入编号" autocomplete="off" class="layui-input" value="<? echo $detail['mid']?>">
        </div>
    </div>




    <div class="layui-form-item">
    <label class="layui-form-label">身份证号</label>
    <div class="layui-input-block">
      <input type="text" name="ai_idnumber" placeholder="请输入身份证号" autocomplete="off" class="layui-input" value="<? echo $detail['idnumber']?>">
    </div>
  
   <div class="layui-form-item">
    <label class="layui-form-label">性别</label>
    <div class="layui-input-block">
      <input type="radio" name="ai_sex" value="男" title="男"
	  <? if($detail['sex']=="男"){echo "checked";} ?>
	  >
      <input type="radio" name="ai_sex" value="女" title="女"
	  <? if($detail['sex']=="女"){echo "checked";} ?>
	  >
    </div>
  </div>
  
  
   <div class="layui-form-item">
    <label class="layui-form-label">电话</label>
    <div class="layui-input-block">
      <input type="text" name="ai_phone" placeholder="请输入电话" autocomplete="off" class="layui-input" value="<? echo $detail['phone']?>">
    </div>
  </div>


        <div class="layui-form-item">
            <label class="layui-form-label">备用电话</label>
            <div class="layui-input-block">
                <input type="text" name="ai_phone2" placeholder="请输入备用电话" autocomplete="off" class="layui-input" value="<? echo $detail['phone2']?>">
            </div>
        </div>




        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <input type="text" name="ai_address" placeholder="请输入地址" autocomplete="off" class="layui-input"  value="<? echo $detail['address']?>">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">身份证地址</label>
            <div class="layui-input-block">
                <input type="text" name="ai_idaddress" placeholder="请输入地址" autocomplete="off" class="layui-input"  value="<? echo $detail['idaddress']?>" >
            </div>
        </div>





    <div class="layui-form-item">
    <label class="layui-form-label">金额</label>
    <div class="layui-input-block">
        <input type="text" name="ai_cost" placeholder="请输入金额" lay-verify="required"  autocomplete="off" class="layui-input"  value="<?echo $detail['cost']?>">
    </div>
  </div>
  
  
  
     <div class="layui-form-item">
    <label class="layui-form-label">收款状态</label>
    <div class="layui-input-block">

      <input type="radio" name="ai_status" value="已收款" title="已收款" <? if($detail['status']=="已收款"){echo "checked";} ?>>
      <input type="radio" name="ai_status" value="欠费" title="欠费" <? if($detail['status']=="欠费"){echo "checked";} ?>>
    </div>
  </div>



        <div class="layui-form-item">
            <label class="layui-form-label">收款方式<span>*</span></label>
            <div class="layui-input-block" >
                <input type="radio" name="ai_payment"  value="现金" title="现金" <? if($detail['payment']=="现金"){echo "checked";} ?>>
                <input type="radio" name="ai_payment"  value="借记卡"  title="借记卡" <? if($detail['payment']=="借记卡"){echo "checked";} ?>>
                <input type="radio" name="ai_payment"  value="信用卡" title="信用卡" <? if($detail['payment']=="信用卡"){echo "checked";} ?>>
            </div>
        </div>


 
 
  <div class="layui-form-item">
    <label class="layui-form-label">学驾车型</label>
    <div class="layui-input-block">
      <select name="ai_license"><i class="layui-icon"></i>>
        <option value="<? echo $detail['license']?>"><? echo $detail['license']?></option>
          <option value="A1">A1 : 大型客车 大型载客汽车</option>

          <option value="A2">A2 : 牵引车 重型、中型全挂、半挂汽车列车</option>

          <option value="A3">A3 : 城市公交车 核载10人以上的城市公共汽车</option>

          <option value="B1">B1 : 中型客车 中型载客汽车</option>

          <option value="B2">B2 : 大型货车 重型、中型载货汽车；大、重、中型专项作业车</option>

          <option value="C1">C1 : 小型汽车 小型、微型载客汽车以及轻型、微型载货汽车、轻、小、微型专项作业车</option>

          <option value="C2">C2 : 小型自动挡汽车 小型、微型自动挡载客汽车以及轻型、微型自动挡载货汽车</option>

          <option value="C3">C3 : 低速载货汽车 速载货汽车（原四轮农用运输车)</option>

          <option value="C4">C4 : 三轮汽车 三轮汽车（原三轮农用运输车</option>

          <option value="D">D : 普通三轮摩托车 发动机排量大于50ml或者最大设计车速大于50km/h的三轮摩托车</option>

          <option value="E">E : 普通二轮摩托车 发动机排量大于50ml或者最大设计车速大于50km/h的二轮摩托车</option>

          <option value="F">F : 轻便摩托车 发动机排量小于等于50ml，最大设计车速小于等于50km/h的摩托车</option>

          <option value="M">M : 轮式自行机械车 轮式自行机械车</option>

          <option value="N">N : 无轨电车 无轨电车</option>

          <option value="P">P : 有轨电车 有轨电车 无</option>



      </select>
    </div>
  </div>




        <div class="layui-form-item">
            <label class="layui-form-label">原有驾照</label>
            <div class="layui-input-block">
                <input type="checkbox" name="ai_had_license[]" value="A1" title="A1" >
                <input type="checkbox" name="ai_had_license[]" value="A2" title="A2" >
                <input type="checkbox" name="ai_had_license[]" value="A3" title="A3" >
                <input type="checkbox" name="ai_had_license[]" value="B1" title="B1" >
                <input type="checkbox" name="ai_had_license[]" value="B2" title="B2" >
                <input type="checkbox" name="ai_had_license[]" value="C1" title="C1" >
                <input type="checkbox" name="ai_had_license[]" value="C2" title="C2" >
                <input type="checkbox" name="ai_had_license[]" value="C3" title="C3" >
                <input type="checkbox" name="ai_had_license[]" value="C4" title="C4" >
                <input type="checkbox" name="ai_had_license[]" value="D" title="D" >
                <input type="checkbox" name="ai_had_license[]" value="E" title="E" >
                <input type="checkbox" name="ai_had_license[]" value="F" title="F" >
                <input type="checkbox" name="ai_had_license[]" value="M" title="M" >
                <input type="checkbox" name="ai_had_license[]" value="P" title="P" >
            </div>
        </div>





<?  
	$agean_list=select_lines_all_items($table_Prefix."employee","nid desc","","0");

    $agent=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['agentid']."'");

?>
  
  <div class="layui-form-item">
    <label class="layui-form-label">介绍人<span>*</span></label>
    <div class="layui-input-block">
      <select name="ai_agentid" lay-search="required">
        <option value="<? echo $detail['agentid']?>"><? echo $detail['agentid']." : ".$agent['name']?></option>
  <? for($i=0;$i<count($agean_list);$i++){ ?>
          <option value="<? echo $agean_list[$i]['nid'] ?>"><? echo $agean_list[$i]['nid'] ?> : <? echo $agean_list[$i]['name'] ?></option> 
  <? } ?>
      </select>
    </div>
  </div>
  
  
  
  
  
<?  
	$coach_list=select_lines_all_items($table_Prefix."employee","nid desc","coach = '1'","0");
    $coach=select_one_line_all_items($table_Prefix."employee","nid = '".$detail['coachid']."'");

?>
  <div class="layui-form-item">
    <label class="layui-form-label">教练员</label>
    <div class="layui-input-block">
      <select name="ai_coachid" lay-search="">
        <option value="<? echo $detail['coachid']?>"><? echo $detail['coachid']." : ".$coach['name']?></option>
  <? for($i=0;$i<count($coach_list);$i++){ ?>
          <option value="<? echo $coach_list[$i]['nid'] ?>"><? echo $coach_list[$i]['nid'] ?> : <? echo $coach_list[$i]['name'] ?></option> 
  <? } ?>
      </select>
    </div>
  </div>
  
  
  
  
  
 
 <?  
//	$department_list=select_lines_all_items($table_Prefix."department","nid desc","","0");
    $department=select_one_line_all_items($table_Prefix."department","nid = '".$detail['departmentid']."'");
?>
		
		
   <div class="layui-form-item">
    <label class="layui-form-label">网点</label>
    <div class="layui-input-block">
      <select name="ai_departmentid" lay-verify="required">
	  
        <option value="<? echo $detail['departmentid']?>"><? echo $department['name']?></option>
		
<!--		--><?//for($i=0;$i<count($department_list);$i++){?>
<!--        <option value="--><?// echo $department_list[$i]['nid'] ?><!--">--><?// echo $department_list[$i]['name'];?><!--</option> -->
<!--		--><?// ;} ?>
      </select>
    </div>
  </div>




        <div class="layui-form-item">
            <label class="layui-form-label">学员状态<span>*</span></label>
            <div class="layui-input-block" >

                <input type="radio" name="ai_graduate"  value="未结业" title="未结业" <? if($detail['graduate']=="未结业"){echo "checked";} ?>>

                <input type="radio" name="ai_graduate"  value="结业" title="结业" <? if($detail['graduate']=="结业"){echo "checked";} ?>>

                <input type="radio" name="ai_graduate"  value="退学" title="退学" <? if($detail['graduate']=="退学"){echo "checked";} ?>>
            </div>
        </div>




        <div class="layui-form-item">
            <label class="layui-form-label">档案编号</label>
            <div class="layui-input-block">
                <input type="text" name="ai_file_code" placeholder="请输入档案编号" autocomplete="off" class="layui-input" value="<?echo $detail['file_code'] ?>" >
            </div>
        </div>



        <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
      <textarea name="ai_remark" placeholder="备注" class="layui-textarea"><? echo $detail['remark']?></textarea>
    </div>
  </div>
  
  
  
  
 
 
 
 


  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>


<input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>
<input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
<input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>
<input name="term_nid" type="hidden" value="<? echo $_REQUEST['term_nid'] ?>"/>


 
</form>




</ul>
</div>
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>


<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?> </body>
</html>
